<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta content="telephone=no" name="format-detection">
    <title>{$setting['title']}</title>

    <style type="text/css">
    @charset "UTF-8";
    [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak, .ng-hide:not(.ng-hide-animate) {
        display: none !important;
    }
    ng\:form {
        display: block;
    }
    </style>
    <script src="{php echo $this->cur_res}/assets/diandanbao/jquery-1.11.3.min.js"></script>
    <link href="{RES}/plugin/light7/light7.min.css" media="all" rel="stylesheet">
    <script src="{RES}/plugin/light7/light7.min.js"></script>
    <script>
        $.config = {
            autoInit: true //no recommend
        }
    </script>
</head>
<body>
<div class="content infinite-scroll">
    <header class="bar bar-nav">
        <a class="icon icon-left pull-left" href="javascript:history.back(-1);"></a>
        <a class="icon icon-search pull-right" href="{php echo $this->createMobileUrl('search', array(), true)}"></a>
        <h1 class="title">门店列表</h1>
    </header>

    <div class="list-block media-list">
        <ul>
            <li>
                <a href="/examples/light7-mall/detail" class="item-link item-content">
                    <div class="item-media"><img src="//gdp.alicdn.com/bao/uploaded/i1/TB1kzlgHVXXXXbtXpXXXXXXXXXX_!!0-item_pic.jpg_240x240.jpg" width="80"></div>
                    <div class="item-inner">
                        <div class="item-title-row">
                            <div class="item-title">码上点餐</div>
                            <div class="item-after">1000米</div>
                        </div>
                        <div class="item-subtitle">配送费:15</div>
                        <div class="item-text">汕头市大学路工商综合楼</div>
                    </div>
                </a>
            </li>
            <li>
                <a href="/examples/light7-mall/detail" class="item-link item-content">
                    <div class="item-media"><img src="//gdp.alicdn.com/bao/uploaded/i2/TB1mEnmHXXXXXXHapXXXXXXXXXX_!!0-item_pic.jpg_240x240.jpg" width="80"></div>
                    <div class="item-inner">
                        <div class="item-title-row">
                            <div class="item-title">J Pillow</div>
                            <div class="item-after">$150</div>
                        </div>
                        <div class="item-subtitle">145 Like</div>
                        <div class="item-text">J Pillow - Travel Pillow - Winner of British Invention of the Year 2013 - Consistently #1 BEST SELLING TRAVE</div>
                    </div>
                </a>
            </li>
            <li>
                <a href="/examples/light7-mall/detail" class="item-link item-content">
                    <div class="item-media"><img src="//gdp.alicdn.com/bao/uploaded/i4/TB13mgfHpXXXXcVXFXXXXXXXXXX_!!2-item_pic.png_240x240.jpg" width="80"></div>
                    <div class="item-inner">
                        <div class="item-title-row">
                            <div class="item-title">Rozene</div>
                            <div class="item-after">$120</div>
                        </div>
                        <div class="item-subtitle">345 Like</div>
                        <div class="item-text">WayHomeDecor Cotton Linen Decorative Throw Pillow Case Cushion Cover Cute </div>
                    </div>
                </a>
            </li>
            <li>
                <a href="/examples/light7-mall/detail" class="item-link item-content">
                    <div class="item-media"><img src="//gdp.alicdn.com/bao/uploaded/i1/TB1kzlgHVXXXXbtXpXXXXXXXXXX_!!0-item_pic.jpg_240x240.jpg" width="80"></div>
                    <div class="item-inner">
                        <div class="item-title-row">
                            <div class="item-title">SoundAsleep Products</div>
                            <div class="item-after">$120</div>
                        </div>
                        <div class="item-subtitle">203 Like</div>
                        <div class="item-text">SoundAsleep Dream Series Air Mattress with ComfortCoil Technology</div>
                    </div>
                </a>
            </li>
        </ul>
    </div>
    <div class="ddb-box filter-nav-box ng-hide" ng-show="mask">
        <div class="box-mask"></div>
    </div>
    <!--footer-->
    {php include $this->template($this->cur_tpl.'/_menu');}
    <input type="hidden" id="curlat" name="curlat" value="0"/>
    <input type="hidden" id="curlng" name="curlng" value="0"/>
    <input type="hidden" id="isposition" name="isposition" value="{$isposition}" />
    <input type="hidden" id="cururl" name="cururl" value="{php echo $this->createMobileurl('waprestlist', array(), true)}" />
</div>

<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=5PESLgvMcSbSUbPjmDKgvGZ3"></script>
<script type="text/javascript" src="../addons/weisrc_dish/template/js/postion.js?v=3"></script>
<script>
//    $.toast("操作失败");
</script>
<!--<link href="{RES}/plugin/weui/weui.min.css" media="all" rel="stylesheet">-->
<script language="javascript">
    $('.ddb-tab-bar .ddb-tab-item').click(function () {
        $(".filter-nav-menu > .ddb-nav-pane").addClass('ng-hide').eq($('.ddb-tab-bar .ddb-tab-item').index(this)).removeClass('ng-hide');
        $(".ddb-box").removeClass('ng-hide');
    });

    $('.ddb-box').click(function () {
        $(".filter-nav-menu > .ddb-nav-pane").addClass('ng-hide').eq($('.ddb-tab-bar .ddb-tab-item').index(this)).addClass('ng-hide');
        $(".ddb-box").addClass('ng-hide');
    });
    //区域
    $('.areatype > li').click(function () {
        var curlat = $('#curlat').val();
        var curlng = $('#curlng').val();
        var id = $(this).attr("data-id");
        window.location.href = "{php echo $this->createMobileurl('waprestlist', array('storeid' => $storeid, 'sortid' => $sortid, 'typeid' => $typeid), true)}" + '&areaid=' + id + '&lat=' + curlat + '&lng=' + curlng;
    });
    //商家类型
    $('.shoptype > li').click(function () {
        var curlat = $('#curlat').val();
        var curlng = $('#curlng').val();
        var id = $(this).attr("data-id");
        window.location.href = "{php echo $this->createMobileurl('waprestlist', array('storeid' => $storeid, 'sortid' => $sortid, 'areaid' => $areaid), true)}" + '&typeid=' + id + '&lat=' + curlat + '&lng=' + curlng;
    });
    //排序
    $('.shopsort > li').click(function () {
        var curlat = $('#curlat').val();
        var curlng = $('#curlng').val();
        var id = $(this).attr("data-id");
        window.location.href = "{php echo $this->createMobileurl('waprestlist', array('storeid' => $storeid, 'typeid' => $typeid, 'areaid' => $areaid), true)}" + '&sortid=' + id + '&lat=' + curlat + '&lng=' + curlng;
    });
</script>
<link rel="stylesheet" href="{RES}/swiper/css/swiper.min.css">
<script src="{RES}/swiper/js/swiper.min.js"></script>
<script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        loop:true,
        autoplay: 2500,
        paginationClickable: true
    });

    $(document).ready(function() {

    });
</script>
{php echo register_jssdk(false);}
<script>
    wx.ready(function () {
        sharedata = {
            title: '{$share_title}',
            desc: '{$share_desc}',
            link: '{$share_url}',
            imgUrl: '{$share_image}',
            success: function(){

            },
            cancel: function(){

            }
        };
        wx.onMenuShareAppMessage(sharedata);
        wx.onMenuShareTimeline(sharedata);
    });
</script>
</body>
</html>